#include "manager.h"
#include <string.h>

Manager::Manager(const char* _name,const char* _passwd,int _id)
{
	id = _id;
	strcpy(name,_name);
	strcpy(passwd,_passwd);
}

Manager::Manager(Manager& that)
{
	id = that.id;
	strcpy(name,that.name);
	strcpy(passwd,that.passwd);
}

Manager& Manager::operator = (Manager& that)
{
	if(this != &that)
	{
		id = that.id;
		strcpy(name,that.name);
		strcpy(passwd,that.passwd);

	}

	return *this;
}

int Manager::get_id(void)
{
	return id;
}

const char* Manager::get_name(void)
{
	return name;
}

const char* Manager::get_passwd(void)
{
	return passwd;
}